@ECHO  Permanently delete(NPC Cache files)
@ECHO  Author: sheahoi
@ECHO  ----- 
@ECHO  Please connect any key, the program will begin to check whether the default installation path(enUS)
@ECHO  -----
@pause

IF EXIST "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb" GOTO LOOP

IF NOT EXIST "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb" GOTO bye
:: ELSE

:LOOP
SET /P choice1=Complete permanently delete (Cache files) press Y,Reply record (Cache files) Press N,(Y/N):
IF /I "%choice1%"=="Y" GOTO enUS
IF /I "%choice1%"=="N" GOTO CANCEL
:: ELSE
GOTO LOOP


:enUS
del /s/f/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
del /s/f/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
rd /s/q  "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
rd /s/q  "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
md "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
attrib  -r -s +h "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
md "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb\remove_creaturecache..\"
md "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
attrib  -r -s +h "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
md "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb\remove_npccache..\"

@ECHO  Complete permanently delete (Cache files-npccache.wdb,creaturecache.wdb)
@ECHO  Please connect any key, leaving the program
@pause
GOTO exit

:CANCEL
@del /s/f/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
@DEL /f /a /q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
@rd /s/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\npccache.wdb"
@del /s/f/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
@DEL /f /a /q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
@rd /s/q "C:\Program Files\World of Warcraft\Cache\WDB\enUS\creaturecache.wdb"
@ECHO  Complete Reply record (Cache files-npccache.wdb,creaturecache.wdb)
@ECHO  Please connect any key, leaving the program
@pause
GOTO exit  

:bye
@ECHO OFF
@ECHO -----------------------------------------
@ECHO  Completion of the program will check the default installation path does not comply.
@ECHO  Open other languages (folders)
@ECHO  Open ReadMe.txt for further set their own custom installation path permanently remove method.
@pause
@ECHO  Please connect any key, leaving the program
GOTO exit

